package com.haikesi.api.menuauthority.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class MenuAuthorityTreeVO implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "ID")
    private String id;
    /**
     * 父权限
     */
    @ApiModelProperty(value = "菜单上级ID")
    private String parentId;
    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称")
    private String authorityName;

    /**
     * 权限描述
     */
    @ApiModelProperty(value = "权限描述")
    private String authorityDescription;

    @ApiModelProperty(value = "权限图标")
    private String authorityIcon;

    /**
     * 权限唯一标识
     */
    @ApiModelProperty(value = "权限唯一标识")
    private String authoritySign;

    @ApiModelProperty(value = "权限分类( 1.权限菜单；2.权限按钮)")
    private Integer authorityType;
    
    @ApiModelProperty(value = "菜单url")
    private String menuUrl;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;


    @ApiModelProperty(value = "孩子们")
    private List<MenuAuthorityTreeVO> childrens;


}